#ifndef DEVICE_H_
#define DEVICE_H_

#include "FileSystem.h"
#include "Blok.h"
#include "const.h"
#include "SuperBlok.h"
#include <map>

class FileSystem;

class Device {
private:
	int					openedDevice;       // Unix handle naar het apparaat
	map<int, Blok*>*	cache;				// gecachede blokken

	void addBlockToCache(int number, Blok* block);
public:
	Device(const char *device);
	virtual ~Device();

	Blok*  		getBlok(int number);
	SuperBlok* 	getSuperBlok();
};

#endif
